package com.cw2.creatation.builder.builder;

/**
 * 可以链式调用的建造者模式
 */
public class MainTest {
    public static void main(String[] args) {
        AppPhone appPhone = new AppPhone();
        Phone phone = appPhone.cpu("cpu")
                .disk("1t")
                .cam("1亿")
                .mem("1t").builder();
        System.out.println(phone);

//        new StringBuilder().append()
    }
}
